function addBlocks (Blockly) {
    const color = '#42CCFF'; // 255,171,25

    Blockly.Blocks.bh1750_getValue = {// loonson no pro
        init: function () {
            this.jsonInit({
                message0: Blockly.Msg.BH1750_GETVALUE,//Blockly.Msg.SINGLELED_SET_LED_STATE
                args0: [
                    {
                        type: 'field_dropdown', // xia la  menu
                        name: 'scl',
                        options: [
                            ['IIC0_SCL','IIC0_SCL'],
                            ['IIC1_SCL','IIC1_SCL']
                        ]
                    },
                    {
                        type: 'field_dropdown',// input gpoio
                        name: 'sda',
                        options: [
                            ['IIC0_SDA','IIC0_SDA'],
                            ['IIC1_SDA','IIC1_SDA']
                        ]
                    }
                    
                ],
                colour: color,
                extensions: ['output_number'] 
                // block type
            });
        }
    };

    return Blockly;
}

exports = addBlocks;
